<%-- 
    Document   : TCube - CreateMerchantAccountConfirm
    Created on : Sep 27, 2011, 7:43:00 AM
    Author     : Belinda
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList, BusinessLogic.Constants"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>FoodSage - Create Merchant Account</title>

        <script language="javascript" type="text/javascript" src="../TransactWeb/js/jquery-1.6.4.min.js"></script>
        <script language="javascript" type="text/javascript" src="../TransactWeb/js/jquery.form.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/fieldsetCollapse.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/tcubmenu.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/accordion.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/scroller.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/Utilities.js"></script>

        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/gridsys.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/reset1.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/tcube.css" />
        <link href="../TransactWeb/css/gridsys.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/tcubaccd.css" />
        <script type="text/javascript">
            // Check Session to show relevant menus
            // Be sure to import Utilities.js in the script file	and declare partnerMenu as a servelet element
            window.onload = showPage('tcubeMenu', 'leftnav');

            // If not logged in, use : 
            //window.onload = showPage('topMenutcube', 'topmenu');
            //IF logged in use : 
            window.onload = showPage('topMenulogouttcube', 'topmenu');

            //welcome msg
            window.onload = showPage('welcomeMenutcube','welcome');

            //footer
            window.onload = showPage('tcubeFooter','footer');
        </script>
    </head>

    <body>
        <div class="container_12">
            <!-- Header Nav -->
            <div class="grid_3"><img src="../TransactWeb/img/reservation/foodsglogo.png" width="146" height="178" /></div>
            <div class="grid_9 nav">
                <div id="topmenu"></div>
            </div>

            <div class="grid_12">
                <hr size="3" color="#CC6600" />
            </div>

            <!-- Welcome Message -->
            <div class="grid_12 welcome">
                <div id="welcome"></div>
            </div>
            <!-- End Welcome Message-->

            <!-- End of Header Nav -->
            <!-- Menu / Planner -->
            <div class="grid_4">
                <div id="leftnav"></div>
            </div>

            <!--End Menu/ Planner -->
            <!-- Content -->
            <div class="grid_8 content">
                <!-- Content Header -->

                <table width="600" border="0">
                    <tr>
                        <td class="content_title">Merchant Account Management</td>
                    </tr>
                    <tr>
                        <td class="content_purpose">Confirm Merchant Details</td>
                    </tr>
                </table>
                <!-- End Content Header-->

                <!-- Form -->
                <table width="636" border="0" class="form">
                    <tr>
                        <td colspan="2" class="createcat">Merchant Login</td>
                    </tr>
                    <tr>
                        <td>Company Name : </td>
                        <td><%= request.getParameter("partnerName")%></td>
                    </tr>
                    <tr>
                        <td>Account Access Level : </td>
                        <td><%= request.getParameter("level")%></td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2" class="createcat">Manager</td>
                    </tr>
                    <tr>
                        <td>First Name : </td>
                        <td><%= request.getParameter("firstName")%></td>
                    </tr>
                    <tr>
                        <td>Last Name : </td>
                        <td><%= request.getParameter("lastName")%></td>
                    </tr>
                    <tr>
                        <td>NRIC : </td>
                        <td><%= request.getParameter("NRIC")%></td>
                    </tr>
                    <tr>
                        <td>Gender : </td>
                        <td><%= request.getParameter("sex")%></td>
                    </tr>
                    <tr>
                        <td>Contact Number : </td>
                        <td> + <%= request.getParameter("countryCode")%> 
                            - <%= request.getParameter("phone")%>
                        </td>
                    </tr>
                    <tr>
                        <td>Email : </td>
                        <td><%= request.getParameter("email1")%></td>
                    </tr>
                    <tr>
                        <td>Country : </td>
                        <td><%= request.getParameter("country")%></td>
                    </tr>
                    <tr>
                        <td>Province : </td>
                        <td><%= request.getParameter("province")%></td>
                    </tr>
                    <tr>
                        <td>City : </td>
                        <td><%= request.getParameter("city")%></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2" class="createcat">Merchant General Details</td>
                    </tr>
                    <tr>
                        <td>Business Address : </td>
                        <td><%= request.getParameter("partnerBizAddress1")%> <br/>
                            <%= request.getParameter("partnerBizAddress2")%> <br /><br />

                        </td>
                    </tr>
                    <tr>
                        <td>Business Address Postal Code : </td>
                        <td><%= request.getParameter("partnerBizPostalCode")%></td>
                    </tr>
                    <tr>
                        <td>Contact Number : </td>
                        <td> + <%= request.getParameter("partnerCountryCode")%>
                            - <%= request.getParameter("partnerPhone")%>
                        </td>
                    </tr>
                    <tr>
                        <td>Country : </td>
                        <td><%= request.getParameter("partnerCountry")%></td>
                    </tr>
                    <tr>
                        <td>Province : </td>
                        <td><%= request.getParameter("partnerProvince")%></td>
                    </tr>
                    <tr>
                        <td>City : </td>
                        <td><%= request.getParameter("partnerCity")%></td>
                    </tr>
                    <tr>
                        <td>Business Email : </td>
                        <td><%= request.getParameter("partnerBizEmail")%></td>
                    </tr>
                    <tr>
                        <td>Business Sector : </td>
                        <td><%= request.getParameter("partnerSector")%></td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2" class="createcat">Billing Details </td>
                    </tr>
                    <tr>
                        <td>Billing Address : <br />
                            (if similar to business address, leave empty)</td>
                        <td><%= request.getParameter("partnerBillingAddress1")%><br/>
                            <%= request.getParameter("partnerBillingAddress2")%><br/><br/>
                        </td>
                    </tr>
                    <tr>
                        <td>Billing Postal Code : <br />
                            (if similar to business address, leave empty)
                        </td>
                        <td><%= request.getParameter("partnerBillingPostalCode")%></td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                </table>


                <form id="merAccCfm" name="merAccCfm" action="CreateMerchantAccountStatus" method="POST">
                    <!-- Manager -->
                    <input type="hidden" value="<%= request.getParameter("chosenUsername")%>" name="chosenUsername">
                    <input type="hidden" value="<%= request.getParameter("password1")%>" name="password1">
                    <input type="hidden" value="<%= request.getParameter("level")%>" name="level">
                    <input type="hidden" value="<%= request.getParameter("firstName")%>" name="firstName">
                    <input type="hidden" value="<%= request.getParameter("lastName")%>" name="lastName">
                    <input type="hidden" value="<%= request.getParameter("NRIC")%>" name="NRIC">
                    <input type="hidden" value="<%= request.getParameter("sex")%>" name="sex">
                    <input type="hidden" value="<%= request.getParameter("countryCode")%>" name="countryCode">
                    <input type="hidden" value="<%= request.getParameter("phone")%>" name="phone">
                    <input type="hidden" value="<%= request.getParameter("email1")%>" name="email1">
                    <input type="hidden" value="<%= request.getParameter("country")%>" name="country">
                    <input type="hidden" value="<%= request.getParameter("province")%>" name="province">
                    <input type="hidden" value="<%= request.getParameter("city")%>" name="city">


                    <!-- Partner -->
                    <input type="hidden" value="<%= request.getParameter("partnerName")%>" name="partnerName">
                    <input type="hidden" value="<%= request.getParameter("partnerBizAddress1")%>" name="partnerBizAddress1">
                    <input type="hidden" value="<%= request.getParameter("partnerBizAddress2")%>" name="partnerBizAddress2">
                    <input type="hidden" value="<%= request.getParameter("partnerBizPostalCode")%>" name="partnerBizPostalCode">
                    <input type="hidden" value="<%= request.getParameter("partnerCountryCode")%>" name="partnerCountryCode">
                    <input type="hidden" value="<%= request.getParameter("partnerPhone")%>" name="partnerPhone">
                    <input type="hidden" value="<%= request.getParameter("partnerCountry")%>" name="partnerCountry">
                    <input type="hidden" value="<%= request.getParameter("partnerProvince")%>" name="partnerProvince">
                    <input type="hidden" value="<%= request.getParameter("partnerCity")%>" name="partnerCity">
                    <input type="hidden" value="<%= request.getParameter("partnerBizEmail")%>" name="partnerBizEmail">
                    <input type="hidden" value="<%= request.getParameter("partnerSector")%>" name="partnerSector">
                    <input type="hidden" value="<%= request.getParameter("partnerBillingAddress1")%>" name="partnerBillingAddress1">
                    <input type="hidden" value="<%= request.getParameter("partnerBillingAddress2")%>" name="partnerBillingAddress2">
                    <input type="hidden" value="<%= request.getParameter("partnerBillingPostalCode")%>" name="partnerBillingPostalCode">

                    <input type="submit" name="submit" id="confirmMer" value="Confirm" />
                </form>
                <!-- End Form -->

            </div>
            <!-- End Content -->
            <!-- Footer -->
            <div class="grid_12 footer">
                <div id="footer"></div>
            </div>
            <!-- End Footer-->
        </div>
    </body>
</html>
